package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.ClassFication;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GOODS_TYPE)
public class ConnGoodstype extends BaseAsyPost<ClassFication>{

    public String page;


    public ConnGoodstype(String page, AsyCallBack<ClassFication> asyCallBack) {
        super(asyCallBack);
      this.page=page;


    }

    @Override
    protected ClassFication parser(JSONObject object) throws Exception {
        Log.d(object.toString(),"aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

       Gson gson=new Gson();
        ClassFication loginBean=new ClassFication();
        loginBean=gson.fromJson(object.toString(),ClassFication.class);

        return loginBean;

    }
}



